<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/RpmRtm/rpmRtm" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="rpmRtm" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label >批次号：</label>&nbsp;
            <input type="text" name="lotId" value="${lotId}"/>

            <label >订单号：</label>&nbsp;
            <input type="text" name="parentId" value="${parentId}"/>

            <label >存货编码：</label>&nbsp;
            <input type="text" name="partName" value="${partName}"/>
            <label >图号：</label>&nbsp;
            <input type="text" name="tuhao" value="${tuhao}"/>
            <label >时间：</label>&nbsp;
            <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd"  data-toggle="datepicker" placeholder="FROM">&nbsp;
            <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/RpmRtm/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent">
    <g:if test="${rpmRtm.size() > 0}">
        <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <th width="130"><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${rpmRtm.size()>0}">
                <g:each in="${rpmRtm}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance =="工序等待时间1" || headInstance =="工序等待时间2" || headInstance =="工序等待时间3" || headInstance =="工序等待时间4" || headInstance =="工序等待时间5" || headInstance =="工序等待时间6" || headInstance =="工序等待时间7" ||
                                    headInstance =="工序等待时间8" || headInstance =="工序等待时间9" || headInstance =="工序等待时间10" || headInstance =="工序等待时间11" || headInstance =="工序等待时间12" || headInstance =="工序等待时间13" || headInstance =="工序等待时间21" ||
                                    headInstance =="工序等待时间14" || headInstance =="工序等待时间15" || headInstance =="工序等待时间16" || headInstance =="工序等待时间17" || headInstance =="工序等待时间18" || headInstance =="工序等待时间19" || headInstance =="工序等待时间20" }">
                                <td>
                                    <a href="${request.getContextPath()}/RpmRtm/rpmRtmTwo?step=<%=headInstance%>&lotId=<%=dataInstance.LOT_ID%>" data-toggle="navtab"  data-id="dialog-normal" data-options="{id:'partProgressStep', title:'RPMRTM工序等待时间统计表二阶'}">${dataInstance["${headInstance}"]}</a>
                                </td>
                            </g:if>
                            <g:else test="${headInstance!='RN'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:else>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
            </tbody>
        </table>
    </g:if>
</div>
<g:render template="../template/pagination" />

